﻿<%@ Page Language="C#" MasterPageFile="~/MainPage.master" AutoEventWireup="true" CodeFile="GalerieUzytkownikow.aspx.cs" Inherits="Galerie" Title="Untitled Page" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"><asp:SqlDataSource ID="UserGaleries" runat="server" connectionstring="<%$ ConnectionStrings:ZALSConnectionString %>" selectcommand="SELECT [nazwa],[imie], [nazwisko], [autor], [id_galerii] FROM [GALERIE], [UZYTKOWNICY] WHERE [GALERIE].[autor]=[UZYTKOWNICY].[id_uzytkownika]" /> 
    <asp:Label ID="NameLabel" runat="server" Text="Imie"></asp:Label>
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
    <asp:Label ID="SurnameLabel" runat="server" Text="Nazwisko"></asp:Label>
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
    <asp:Label ID="GaleryLabel" runat="server" Text="Nazwa"></asp:Label><br />
    <asp:TextBox ID="NameTextBox" runat="server"></asp:TextBox>
    <asp:TextBox ID="SurnameTextBox" runat="server"></asp:TextBox>&nbsp;
    <asp:TextBox ID="GaleryTextBox" runat="server"></asp:TextBox>&nbsp;&nbsp;<br />
    <asp:Button ID="SearchButton" runat="server" OnClick="SearchButton_Click" Text="Szukaj" /><br />
    <asp:Label ID="ResultLabel" runat="server" Text="Label" Visible="False"></asp:Label><br /><br />
    <asp:GridView ID="GalerieGridView" runat="server" AutoGenerateColumns="False"
        CellPadding="4" ForeColor="#333333" GridLines="None" Height="28px" 
            Width="533px" DataSourceID="UserGaleries" 
            HorizontalAlign="Center">
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />

<Columns>
    <asp:BoundField DataField="nazwa" HeaderText="nazwa" SortExpression="nazwa" />
    <asp:BoundField DataField="imie" HeaderText="imie" SortExpression="imie" />
    <asp:BoundField DataField="nazwisko" HeaderText="nazwisko" SortExpression="nazwisko" />
    <asp:HyperLinkField DataNavigateUrlFields="id_galerii" DataNavigateUrlFormatString="Galeria.aspx?galId={0}"
                HeaderText="Do galerii" Text="[ otw&#243;rz ]"/>
    <asp:HyperLinkField DataNavigateUrlFields="id_galerii" DataNavigateUrlFormatString="DodajZdj.aspx?galId={0}"
                HeaderText="Dodawanie" Text="[ dodaj zdjecie ]"/>
    <asp:HyperLinkField DataNavigateUrlFields="id_galerii" DataNavigateUrlFormatString="usuwGalerii.aspx?galId={0}"
                HeaderText="Usuwanie" Text="[ usun galerie ]"/>
</Columns>

<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />

<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />

<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />

<EditRowStyle BackColor="#2461BF" />

<AlternatingRowStyle BackColor="White" />
</asp:GridView>
    <asp:TextBox ID="MakeGalTextBox" runat="server"></asp:TextBox>&nbsp;<asp:Button ID="Button1"
        runat="server" OnClick="Button1_Click" Text="Stwórz Galerię" />
</asp:Content>

